//
//  common.swift
//  weibo
//
//  Created by Corgi on 17/3/22.
//  Copyright © 2017年 cocoaHangTou. All rights reserved.
//

import UIKit

//主体颜色
let THEMECOLOR = UIColor.orange

//网络请求参数
let client_id = "4037818929"
let client_secret = "64203e6f7dcd27f2316f3119fdc4e526"
let redirect_uri = "http://www.baidu.com"

//屏幕尺寸
let screenWidth: CGFloat = UIScreen.main.bounds.width
let screenHeight: CGFloat = UIScreen.main.bounds.height

//通知名称统一管理
let SWITCHROOTVIEWCONTROLLERNOTI = "SWITCHROOTVIEWCONTROLLERNOTI"
let EMOTICONBUTTONCLICKNOTI = "EMOTICONBUTTONCLICKNOTI"
let EMOTICONDELETEBUTTONCLICK = "EMOTICONDELETEBUTTONCLICK"
//字体管理
let FONTSIZEOFSMALL: CGFloat = 10
let FONTSIZEOFNORMAL: CGFloat = 14
let FONTSIZEOFBIG: CGFloat = 18


func randomColor() -> UIColor {
    
    
    let r = CGFloat(arc4random()%256)
    let g = CGFloat(arc4random()%256)
    let b = CGFloat(arc4random()%256)
    
    return UIColor(red: r/255, green: g/255, blue: b/255, alpha: 1)
    
}
